package com.wswy.wzcx.model;

import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.annotations.SerializedName;
import java.util.List;

public class OCRItem implements Parcelable {

  @SerializedName("item")
  public String item;
  @SerializedName("itemstring")
  public String value;
  @SerializedName("itemconf")
  public float itemconf;


  protected OCRItem(Parcel in) {
    item = in.readString();
    value = in.readString();
    itemconf = in.readFloat();
  }

  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(item);
    dest.writeString(value);
    dest.writeFloat(itemconf);
  }

  @Override
  public int describeContents() {
    return 0;
  }

  public static final Creator<OCRItem> CREATOR = new Creator<OCRItem>() {
    @Override
    public OCRItem createFromParcel(Parcel in) {
      return new OCRItem(in);
    }

    @Override
    public OCRItem[] newArray(int size) {
      return new OCRItem[size];
    }
  };

  @Override
  public String toString() {
    return "OCRItem{" +
        "item='" + item + '\'' +
        ", value='" + value + '\'' +
        ", itemconf=" + itemconf +
        '}';
  }
}
